package ${basePackage}.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import ${basePackage}.entity.${entity};
import ${basePackage}.dao.${entity}Dao;
import ${basePackage}.service.${entity}Service;

@Service
@Transactional
public class ${entity}ServiceImpl implements ${entity}Service{
	
	@Resource
	private ${entity}Dao ${entityArg}Dao;
	
	public List<${entity}> find() {
		return null;
	}

	public ${entity} load(Long id) {
		return ${entityArg}Dao.load(id);
	}

	public void save(${entity} ${entityArg}) {
		${entityArg}Dao.save(${entityArg});
		
	}

	public void update(${entity} ${entityArg}) {
		${entityArg}Dao.update(${entityArg});
	}

	@Override
	public void delete(${entity} ${entityArg}) {
		${entityArg}Dao.delete(${entityArg});
		
	}

	@Override
	public ${entity} get(Long id) {
		return ${entityArg}Dao.get(id);
	}

	@Override
	public void saveOrUpdate(${entity} ${entityArg}) {
		${entityArg}Dao.saveOrUpdate(${entityArg});
	}

}

